area

Purpose

An area of a image map. Instead of the application processing the coordinates, developers can add the area components as children of a imagemap component thus defining a target. The imagemap component will translate the mouse pointer coordinates into a logical name ie. The id of the area the user clicked.

Examples

<z:imagemap src="/img/earth.jpg" onClick="alert(event.area)">
    <z:area id="First" coords="0, 0, 100, 100"/>
    <z:area id="Second" shape="circle" coords="200, 200, 100"/>
</z:imagemap>

Description

Attributes

ZK Official Reference

Component Reference

Show area Component Reference

Java API

Show area Java API